master#285
Conversation
Johnson-zs
commented
May 6, 2026
- feat: add dfm-burner CLI tool for optical disc operations
- feat: add SM3 checksum verification for disc burning
1. Implemented comprehensive command-line interface for DFM burn library 2. Added new dfm-burner executable with subcommands for all major disc operations 3. Includes info query, file burning, ISO operations, disc erasure, and quality checks 4. Supports both interactive progress display and JSON output for scripting 5. Added extensive help documentation and usage examples 6. Implemented UDF packet writing for incremental file operations Log: Added dfm-burner command-line tool for optical disc burning and management Influence: 1. Install dfm-burner binary and verify package dependencies 2. Test each subcommand with various media types (CD/DVD/BD) 3. Verify JSON output format for scripting use cases 4. Test error handling with invalid inputs and device states 5. Check UDF packet writing operations on rewritable media 6. Validate multi-session burning and append functionality feat: 新增dfm-burner光盘操作命令行工具 1. 为DFM刻录库实现全面的命令行接口 2. 新增dfm-burner可执行文件,支持所有主要光盘操作子命令 3. 包含信息查询、文件刻录、ISO操作、光盘擦除和质检功能 4. 支持交互式进度显示和JSON输出以便脚本调用 5. 添加了详尽的帮助文档和使用示例 6. 实现了UDF封包写入功能支持增量文件操作 Log: 新增光盘刻录管理命令行工具dfm-burner Influence: 1. 安装dfm-burner可执行文件并验证软件包依赖 2. 使用不同介质类型(CD/DVD/BD)测试各个子命令 3. 验证脚本调用所需的JSON输出格式 4. 测试无效输入和设备状态下的错误处理 5. 在可擦写介质上测试UDF封包写入操作 6. 验证多区段刻录和追加功能
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Johnson-zs The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Warning
|
|
Note
详情{
"debian/control": [
{
"line": "Homepage: http://www.deepin.org",
"line_number": 33,
"rule": "S35",
"reason": "Url link | 6fe814dfb7"
}
]
} |
1. Added SM3 checksum generation and verification capabilities 2. Implemented new manifest system to store file hashes before burning 3. Added new CLI commands for checksum generation and verification 4. Added libssl-dev as new dependency for cryptographic functions 5. Integrated checksum verification into optical disc manager 6. Added cache management for temporary extraction during verification Log: 1. Added 'checksum gen' command to generate SM3 manifest 2. Added 'checksum verify' command to validate disc integrity 3. Enhanced error reporting for checksum mismatches Influence: 1. Test checksum generation on various file types and sizes 2. Verify checksum validation with correct and corrupted files 3. Test manifest generation with different ISO base paths 4. Verify cache cleanup after verification completes 5. Test command line help and error messages for new features 6. Validate performance impact with large directories 7. Test cross-platform compatibility of manifest files feat: 新增光盘刻录的SM3校验功能 1. 新增SM3校验生成和验证功能 2. 实现新的校验清单系统用于存储刻录前的文件哈希值 3. 新增命令行指令用于校验生成和验证 4. 添加libssl-dev作为新的加密功能依赖项 5. 将校验验证功能集成到光盘管理器中 6. 为验证过程中的临时解压添加缓存管理 Log: 1. 新增'checksum gen'命令用于生成SM3清单 2. 新增'checksum verify'命令用于验证光盘完整性 3. 增强校验不匹配时的错误报告 Influence: 1. 测试对不同类型和大小的文件生成校验和 2. 验证对正确和已损坏文件的校验过程 3. 使用不同ISO基础路径测试清单生成 4. 验证完成后确认缓存清理正常 5. 测试新功能的命令行帮助和错误消息 6. 验证对大目录的性能影响 7. 测试清单文件的跨平台兼容性 Task: https://pms.uniontech.com/task-view-388937.html
|
Warning
|
|
Note
详情{
"debian/control": [
{
"line": "Homepage: http://www.deepin.org",
"line_number": 33,
"rule": "S35",
"reason": "Url link | 6fe814dfb7"
}
]
} |
1. Changed verification to extract and check files individually instead of extracting entire disc 2. Added explicit osirrox enable/disable control 3. Improved memory efficiency by deleting processed files immediately 4. Better error handling with proper resource cleanup 5. Made process more reliable for multi-session discs The previous implementation would extract the entire disc contents to verify checksums, which was inefficient and problematic for multi- session discs. The new approach extracts files one at a time, computes their hash, then removes them immediately. This improves memory usage and compatibility with different disc types. Log: Improved disc verification reliability and performance Influence: 1. Test verification with normal single-session discs 2. Test verification with multi-session discs 3. Verify behavior when checksums match and when they don't 4. Check memory usage during verification 5. Test with various file types and sizes 6. Verify cleanup of temporary files after completion perf: 优化光盘校验过程 1. 改为逐个提取并校验文件,而不是提取整个光盘内容 2. 添加显式的osirrox启用/禁用控制 3. 通过立即删除已处理文件提高内存效率 4. 改进错误处理,确保正确释放资源 5. 提升对多区段光盘的可靠性 之前的实现会提取整个光盘内容来校验哈希值,效率低下且对多区段光盘有问题。 新方法逐个提取文件,计算哈希后立即删除,提高了内存使用效率和不同光盘类型 的兼容性。 Log: 提高了光盘校验的可靠性和性能 Influence: 1. 测试普通单区段光盘的验证 2. 测试多区段光盘的验证 3. 验证哈希值匹配和不匹配时的行为 4. 检查验证过程中的内存使用情况 5. 测试不同类型和大小的文件 6. 验证完成后临时文件的清理情况
|
Warning
|
|
Note
详情{
"debian/control": [
{
"line": "Homepage: http://www.deepin.org",
"line_number": 33,
"rule": "S35",
"reason": "Url link | 6fe814dfb7"
}
]
} |
|
Warning
|
|
Note
详情{
"debian/control": [
{
"line": "Homepage: http://www.deepin.org",
"line_number": 33,
"rule": "S35",
"reason": "Url link | 6fe814dfb7"
}
]
} |
Modified QDirIterator flags to include hidden files when generating checksum manifests. Previously hidden files were excluded from the manifest which could cause missing files in backup scenarios where hidden files are important (like configuration files). Log: Now including hidden files in disk checksum manifests Influence: 1. Test manifest generation with directories containing hidden files 2. Verify hidden files checksums are correctly recorded in manifest 3. Check manifest verification process with hidden files included 4. Test with directories containing both regular and hidden files fix: 在生成校验和清单时包含隐藏文件 修改了 QDirIterator 的标志以在生成校验和清单时包含隐藏文件。之前版本中隐 藏文件被排除在清单之外,这在备份场景下可能导致重要隐藏文件(如配置文件) 缺失的问题。 Log: 现在校验和清单包含隐藏文件 Influence: 1. 测试包含隐藏文件的目录清单生成 2. 验证隐藏文件的校验和被正确记录到清单中 3. 检查包含隐藏文件时的清单验证过程 4. 测试同时包含常规文件和隐藏文件的目录情况
|
Warning
|
deepin pr auto review代码审查报告经过对提供的 git diff 进行详细审查,以下是从语法逻辑、代码质量、代码性能和代码安全四个方面的评估和改进建议: 1. 语法逻辑优点
改进建议
2. 代码质量优点
改进建议
3. 代码性能优点
改进建议
4. 代码安全优点
改进建议
总结整体来看,这次代码变更添加了功能完整的命令行工具和SM3校验和功能,代码质量较高。主要改进方向包括:
建议在合并前至少修复拼写错误和参数命名问题,其他改进可以在后续迭代中逐步实施。 |
|
Note
详情{
"debian/control": [
{
"line": "Homepage: http://www.deepin.org",
"line_number": 33,
"rule": "S35",
"reason": "Url link | 6fe814dfb7"
}
]
} |
|
/forcemerge |
1 similar comment
|
/forcemerge |
|
This pr force merged! (status: blocked) |
|
This pr force merged! (status: unknown) |